package com.xdf.ecommerce.feign;

import com.xdf.ecommerce.feign.hystrix.GoodsClientHystrix;
import com.xdf.ecommerce.goods.GoodsInfo;
import com.xdf.ecommerce.vo.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 安全的商品服务 feign 客户端
 * @author chanchaw
 * @create 2025-11-12 7:42
 */
@FeignClient(contextId = "SuredGoodsClient", value = "e-commerce-goods-service", fallback = GoodsClientHystrix.class)
public interface SuredGoodsClient {
    @PostMapping("/ecommerce-goods-service/goods/getGoodsInfo8Id")
    CommonResponse<List<GoodsInfo>> getGoodsInfo8Id(@RequestBody List<Long> ids);
}
